import RuleChain from '@/components/RuleChain/index.vue'
import ComDialog from '@/components/ComDialog.vue'
import ComIcon from './ComIcon.vue'
import ComOperationRow from './ComOperationRow.vue'
import ComPaginationTable from './ComPaginationTable.vue'
import NoData from './NoData.vue'
import ThreeButtonsGroup from './ThreeButtonsGroup.vue'

const components = [
  ComDialog,
  ComIcon,
  ComOperationRow,
  ComPaginationTable,
  NoData,
  ThreeButtonsGroup,
]

const install = function (App: any, options: any) {
  App.component('rule-chain', RuleChain)
  // components.forEach(component => {
  //   App.component(component.name, component)
  //   console.log(options)
  // })
}

// 批量导出*
export default { install }
